<?php 

/**
* 
*/
class Silk_Qslb_Block_Product_View extends Mage_Catalog_Block_Product_Abstract
{
	protected $_isGalleryDisabled;
	
	public function getProduct()
    {
        if (!Mage::registry('product') && $this->getProductId()) {
            $product = Mage::getModel('catalog/product')->load($this->getProductId());
            Mage::register('product', $product);
        }
        return Mage::registry('product');
    }

    public function getGalleryImages()
    {
        if ($this->_isGalleryDisabled) {
            return array();
        }
        $collection = $this->getProduct()->getMediaGalleryImages();
        return $collection;
    }
}